package com.sockect3d.data;

/**
 * Created by Jaqen on 2015/11/24 服务通信相关协议和接口
 */
public class NetProtocol
{
	public final static String LOGIN_HOST = "172.16.0.56";
	public final static int LOGIN_SERVER = 50002;

	/**************************************************************************
	 * 协议头定义
	 **************************************************************************/
	public final static int HMS_COMMUNICATION_PROTOCOL_MAIN_HEADER = 0x11; // 开始
	public final static int HMS_COMMUNICATION_PROTOCOL_MAIN_TAIL = 0xff; // 结束
	public final static int HMS_COMMUNICATION_PROTOCOL_OPERATOR_TYPE_IMG = 0x0301;
	public final static int HMS_COMMUNICATION_PROTOCOL_OPERATOR_TYPE_CTRLTD = 0xAB01; //三维
	public final static long HMS_COMMUNICATION_PROTOCOL_OPERATOR_TYPE_ROUTER = 0xA601;
	public final static long HMS_COMMUNICATION_PROTOCOL_OPERATOR_CODE_ROUTER_3D = 0xB602;
	public final static long HMS_COMMUNICATION_PROTOCOL_OPERATOR_TYPE_OKCODLE = 0xB000;
	public final static long HMS_COMMUNICATION_PROTOCOL_OPERATOR_TYPE_HEARTBEAT = 0xA201;
	public final static long HMS_COMMUNICATION_PROTOCOL_OPERATOR_CODE_HB_SYN = 0xB203;
	public final static long HMS_COMMUNICATION_PROTOCOL_OPERATOR_CODE_IMG_QUERY = 0xB302;
	public final static long ND_SAVE_VIDEO_START = 0xBC08;
	public final static long ND_SAVE_VIDEO_END = 0xBC09;


	/**************************************************************************
	 * 操作类型
	 **************************************************************************/
	public final static long HMS_COMMUNICATION_PROTOCOL_OPERATOR_TYPE_LOGIN = 0xA302; // 登录
	public final static long ND_DOWNLOAD_MODEL = 0xBC02; // 下载模型
	public final static long ND_CLEAR_SCENE = 0xBC08; // 清除屏幕

	public final static long ND_H264_SWITCH_RESOLUTION_RATION = 0xBC09; // 切换h264分辨率
	public final static long ND_IOS_CLIENT = 0xBC0A; // i0S客服端
	public final static long ND_START_WRITE_PROPERTY = 0xBC0B; // 开始写属性
	public final static long ND_SUCCESS_WRITE_PROPERTY = 0xBC0C; // 写属性成功
	public final static long ND_FAILED_WRITE_PROPERTY = 0xBC0D; // 写属性失败
	public final static long ND_SHOW3D = 0xBC03; // 显示图像
	public final static long ND_SHOW3D_ERROR = 0xBC04; // 显示图像错误
	public final static long ND_TOUCHCTRL_ROTATE = 0xBC06; // 控制旋转
	public final static int ND_TOUCHCTRL_MOVE = 0xBC07; // 控制移动
	public final static long ND_H264 = 0xBC18; // 264通信
	public final static long ND_JPEG = 0xBC05; // JPEG通信
	public final static long ND_H264_HAS_HEADER = 0xBC1B; // H264通信有包头
	public final static long ND_H264_NO_HEADER = 0xBC1C; // H264通信无包头
	public final static long ND_H264_HEADER_SUCCESS = 0xBC1D; // H264通信包头设置成功
	public final static long ND_IMAGE_SIZE = 0xBC0E; // 图像大小
	public final static int ND_IMAGE_PLAY = 0xBC10; // 播放图像
	public final static long ND_IMAGE_STOP = 0xBC11; // 暂停图像播放

	// http链接
	public final static String HTTP_URL = "http://cmt.hermes-sys.com:8081/ftp/headerico";

	// MsgType
	public final static int HMS_MSG_TYPE_TEXT = 0;
	public final static int HMS_MSG_TYPE_DICOM = 3;
}
